package com.qf.lanzhou.shop.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * @Author jian
 * @Date 2021/1/11 10:47
 * @JDK 1.8
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Long id;
    private String userName;
    private String password;
    private String code;
    private String phone;
    private String email;
    private String age;
    private String sex;
    private Timestamp createtime;
    private Long orderId;
    private Long addressId;
    private Long cartid;
    private Long goodsId;

    //登录时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp logintime;



}
